package com.longway.common.constant;

import java.util.HashMap;

public interface Const {

    final static String DEFAULT_CACHE = "defaultCache";
    
    final static String AREA_CACHE = "areaCache";

    final static String DICT_CACHE = "dictCache";

    final static String DEPT_CACHE = "deptCache";

    final static String MENU_CACHE = "menuCache";

    final static String PERMI_CACHE = "permiCache";

    final static String ROLE_CACHE = "roleCache";

    final static String USER_CACHE = "userCache";

    final static String FILE_CACHE = "fileCache";

    final static String DIY_CACHE = "diyCache";

    final static String SYS_CACHE = "sysCache";

    final static String SETTING_CACHE = "settingCache";


    final static String SETTING_CACHE_KEY = "baseSetting";

    final static String ISADMIN_CACHE = "isAdminCache";

    final static String ORDER_BY_STR = "orderBy";

    /**
     * 定义日志参数
     */
    final static String PARA_LOG_CODE = "101";

    /**
     * 定义乐观锁字段
     */
    final static String OPTIMISTIC_LOCK = "version";


    /**
     * 登陆地址(路径)
     */
    final static String loginRealPath = "/view/login.html";
    /**
     * 首页面地址(路径)
     */
    final static String indexRealPath = "/index.html";
    /**
     * 400页面地址
     */
    final static String error400Path = "/view/error/400.html";
    /**
     * 401页面地址
     */
    final static String error401Path = "/view/error/401.html";
    /**
     * 404页面地址
     */
    final static String error404Path = "/view/error/404.html";
    /**
     * 403页面地址
     */
    final static String error403Path = "/view/error/403.html";
    /**
     * 500页面地址
     */
    final static String error500Path = "/view/error/500.html";
    /**
     * 无权限地址
     */
    final static String noPermissionPath = "/view/error/permission.html";
    /**
     * 下载地址
     */
    final static String downloadPath = "/download";

    final static String TOKEN_HEADER = "TokenHeader";

    final static String TOKEN_PAYLOAD = "TokenPlayload";

    final static String REDIS_DEFAULT_CACHE = "lhyg";

    //账户名或密码不正确
    final static String PASSWORD_WRONG = "400";

    //账户已被锁定
    final static String USER_LOCKED = "401";

    //账号未激活，请先激活账号
    final static String USER_NOT_ACTIVE = "402";

    //token失效
    final static String TOKEN_INVALID = "403";

    //基础上传路径
    final static String BASEUPLOAD_PATH = "/upload/";
    //每个子目录允许存 5000 个文件
    final static int FILES_PER_SUB_DIR = 5000;

    final static String COMPONENT_VERIFY_TICKET = "componentVerifyTicket";

    final static String IMAGE_HOST = "IMAGE_HOST";

    final static String CSRF_TOKEN = "CsrfToken";

    final static String loginAccountCacheName = "loginAccount";

    final static String sessionIdName = "jfinalId";

    final static String apploginAccountCacheName = "appAccount";

    /**
     * 百度企业三要素认证key
     */
    final static String baiduAccessKey = "0b5ac26950444dc48fb1efe7acc47cc2";

    /**
     * 百度企业三要素认证key
     */
    final static String baiduSecretKey = "beaef918b57749cc9a4eea489bdd206f";

    /**
     * 百度企业三要素认证链接地址
     */
    final static String identifyPath = "http://gwgp-wx4hwxnane3.n.bdcloudapi.com/template";

    final static String checkPath = "https://companythree.api.bdymkt.com/company_three/get";

    /**
     * 业务角色ID
     */
    final static String businessRoleId = "1412344321596297217";

    /**
     * 代理商角色Id
     */
    final static String dealersRoleId = "1472024753941970945";

    /**
     * 超级管理员角色ID
     */
    final static String superAdmin = "1";

    /**
     * 服务商角色ID
     */
    final static String administrator = "107";

    /**
     * 财务角色ID
     */
    final static String financialRole = "1414487214930792449";

    /**
     * 技术角色ID
     */
    final static String technicalRole = "1412338385800507393";

    /**
     * 需要拦截的角色Id
     */
    final static HashMap<String, String> INTERCEPT_ROLE_ID = new HashMap<String, String>() {{
        put(businessRoleId, "ok");
        put(dealersRoleId, "ok");
    }};


}
